﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DeploymentMaxLib
{
    public class ActionLocation
    {
        public Guid Key { get; set; }
        public ActionLocationType LocationType { get; set; }
        public string Location { get; set; }
        public DateTime? Created { get; set; }
        public DateTime? Updated { get; set; }

        public ActionLocation()
        {
        }

        private ActionLocation(string pLocation, ActionLocationType pLocationType)
        {
            this.Key = Guid.NewGuid();
            this.LocationType = pLocationType;
            this.Created = DateTime.Now;
            this.Location = pLocation;
        }

        public static ActionLocation New(string pLocation, ActionLocationType pLocationType)
        {
            return new ActionLocation(pLocation, pLocationType);
        }
    }
}
